package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitUserOrderPayRouter(Router *gin.RouterGroup) {
	UserOrderPayRouter := Router.Group("userOrderPay").Use(middleware.OperationRecord())
	{
		UserOrderPayRouter.POST("createUserOrderPay", v1.CreateUserOrderPay)   // 新建UserOrderPay
		UserOrderPayRouter.DELETE("deleteUserOrderPay", v1.DeleteUserOrderPay) // 删除UserOrderPay
		UserOrderPayRouter.DELETE("deleteUserOrderPayByIds", v1.DeleteUserOrderPayByIds) // 批量删除UserOrderPay
		UserOrderPayRouter.PUT("updateUserOrderPay", v1.UpdateUserOrderPay)    // 更新UserOrderPay
		UserOrderPayRouter.GET("findUserOrderPay", v1.FindUserOrderPay)        // 根据ID获取UserOrderPay
		UserOrderPayRouter.GET("getUserOrderPayList", v1.GetUserOrderPayList)  // 获取UserOrderPay列表
	}
}
